package com.cxyd.modules.wms.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cxyd.common.dao.BaseDao;
import com.cxyd.modules.wms.entity.OrderDetailEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 出库明细
 *
 * @author g_Cycle gengruyi01@163.com
 * @since 1.0.0 2023-04-27
 */
@Mapper
public interface OrderDetailDao extends BaseDao<OrderDetailEntity> {
    IPage<OrderDetailEntity> selectViewPage(IPage<OrderDetailEntity> page, @Param("ew") Wrapper<OrderDetailEntity> queryWrapper);
    int batchSaveOrderDetails(List<OrderDetailEntity> detailList);

    List<OrderDetailEntity> selectForBackup(@Param("date") Date date, @Param("num") Integer num);
}